<%--
  Created by IntelliJ IDEA.
  User: 吴超
  Date: 2022/4/11
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String user=(String)session.getAttribute("user");
    if(user!=null){
        request.getRequestDispatcher("sucess.jsp").forward(request,response);
    }
%>
            <h1>我是登录页面</h1>
<form action="controller.jsp" method="post">
    <p> 账户<input type="text" name="name" > </p>
    <p> 密码<input type="text" name="pwd" > </p>
    <input type="submit" value="提交">
</form>
</body>
</html>
